<template>
  <h1>Hello Vue3</h1>
  <h1>工资:{{salary}}</h1>
  <button @click="addbtn(1000)">加油~</button>
</template>

<script>
export default {
data(){
    return{
        salary:10000
    }
},
methods:{
addbtn(val){
    this.salary += val
}
}
}
</script>

<style>

</style>